package com.joymart.user.model;


import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.json.JSONObject;
import org.springframework.data.annotation.Id;


import java.time.LocalDateTime;

@Data
public class User {
    @Id
    private String id;
    @JsonIgnore
    private String username;
//    @JsonIgnore
    private String openId;
    private String nickname;
    private String mobile;
    @JsonSerialize
    private JSONObject meta;
    private boolean partyA;
    // 自己的邀请码
    private String inviteCode;
    //邀请人的用户ID
    private String invitedBy;
    private boolean enabled;
    private LocalDateTime createdAt;
    private boolean deleted;
}
